var MdBlogAddDescPage = {
	save: function() {
		/*mdBlogAddDescAjax.send();*/
		var remarks = $("#mdBlogAddDescFrm").find("textarea[name='remarks']").val();
		var mWindow = MsgBox.getCurrentOpenDialogWindow();
		mWindow.MarkdownEditorBlogEditPage.setRemarks(remarks);
		$('[data-dismiss]')[0].click(); // 关闭对话框
	},
	onSaveSucc: function(data, status, xhr) {
		$.messager.info(data.message);
		$('[data-dismiss]')[0].click(); // 关闭对话框
	}
};
$(function() {
	var codeRemarks = $("textarea[name='codeRemarks']").val();
	var remarks = Util.decode(codeRemarks);
	$("#mdBlogAddDescFrm").autofill({
		'remarks': remarks
	});
});